package org.gourpg.model.project;

import java.sql.Timestamp;

/**
 * 任务进度登记实体
 */
public class ScheduleCheckDetail {
    /**
     * 任务编号
     */
    private Integer scheduleId;

    /**
     * 登记时间
     */
    private Timestamp checkTime;

    /**
     * 登记人
     */
    private Integer checkPersonId;

    /**
     * 任务说明
     */
    private String checkRemark;

    /**
     * 任务进度(0-100)
     */
    private Double processRate;

    public ScheduleCheckDetail() {
    }

    public Integer getScheduleId() {
        return this.scheduleId;
    }

    public Timestamp getCheckTime() {
        return this.checkTime;
    }

    public Integer getCheckPersonId() {
        return this.checkPersonId;
    }

    public String getCheckRemark() {
        return this.checkRemark;
    }

    public Double getProcessRate() {
        return this.processRate;
    }

    public void setScheduleId(Integer scheduleId) {
        this.scheduleId = scheduleId;
    }

    public void setCheckTime(Timestamp checkTime) {
        this.checkTime = checkTime;
    }

    public void setCheckPersonId(Integer checkPersonId) {
        this.checkPersonId = checkPersonId;
    }

    public void setCheckRemark(String checkRemark) {
        this.checkRemark = checkRemark;
    }

    public void setProcessRate(Double processRate) {
        this.processRate = processRate;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof ScheduleCheckDetail)) return false;
        final ScheduleCheckDetail other = (ScheduleCheckDetail) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$scheduleId = this.getScheduleId();
        final Object other$scheduleId = other.getScheduleId();
        if (this$scheduleId == null ? other$scheduleId != null : !this$scheduleId.equals(other$scheduleId))
            return false;
        final Object this$checkTime = this.getCheckTime();
        final Object other$checkTime = other.getCheckTime();
        if (this$checkTime == null ? other$checkTime != null : !this$checkTime.equals(other$checkTime)) return false;
        final Object this$checkPersonId = this.getCheckPersonId();
        final Object other$checkPersonId = other.getCheckPersonId();
        if (this$checkPersonId == null ? other$checkPersonId != null : !this$checkPersonId.equals(other$checkPersonId))
            return false;
        final Object this$checkRemark = this.getCheckRemark();
        final Object other$checkRemark = other.getCheckRemark();
        if (this$checkRemark == null ? other$checkRemark != null : !this$checkRemark.equals(other$checkRemark))
            return false;
        final Object this$processRate = this.getProcessRate();
        final Object other$processRate = other.getProcessRate();
        if (this$processRate == null ? other$processRate != null : !this$processRate.equals(other$processRate))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ScheduleCheckDetail;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $scheduleId = this.getScheduleId();
        result = result * PRIME + ($scheduleId == null ? 43 : $scheduleId.hashCode());
        final Object $checkTime = this.getCheckTime();
        result = result * PRIME + ($checkTime == null ? 43 : $checkTime.hashCode());
        final Object $checkPersonId = this.getCheckPersonId();
        result = result * PRIME + ($checkPersonId == null ? 43 : $checkPersonId.hashCode());
        final Object $checkRemark = this.getCheckRemark();
        result = result * PRIME + ($checkRemark == null ? 43 : $checkRemark.hashCode());
        final Object $processRate = this.getProcessRate();
        result = result * PRIME + ($processRate == null ? 43 : $processRate.hashCode());
        return result;
    }

    public String toString() {
        return "ScheduleCheckDetail(scheduleId=" + this.getScheduleId() + ", checkTime=" + this.getCheckTime() + ", checkPersonId=" + this.getCheckPersonId() + ", checkRemark=" + this.getCheckRemark() + ", processRate=" + this.getProcessRate() + ")";
    }
}
